package com.ss.android.account.b;

import android.content.Context;
import com.ss.android.account.Spipe;

public abstract class aa extends i implements OnAccountRefreshListener {
    private Spipe c;
    private boolean d;

    protected aa(Context arg2) {
        super(arg2);
        this.c = Spipe.inst();
        this.c.addOnAccountRefreshListener(((OnAccountRefreshListener)this));
        this.d = true;
    }

    protected final void a(int arg1, boolean arg2, com.ss.android.account.b.i.i$a arg3) {
        super.a(arg1, arg2, arg3);
    }

    public void onAccountRefresh(boolean arg2, int arg3) {
        if(this.c.isLogin) {
            this.b();
        }
        else if(this.d) {
            this.a();
            this.b();
        }
        else {
            this.b();
        }
    }
}

